//package org.jgs1904.utils;
//
//import org.apache.http.HttpHost;
//import org.elasticsearch.client.RestClient;
//import org.elasticsearch.client.RestHighLevelClient;
//
///**
// * @author 墨苍璃
// * @date 2023年06月04日21时52分
// */
//public class ElasticSearchClientUtil {
//
//    public static RestHighLevelClient getClient() {
//        // 创建客户端对象
//        RestHighLevelClient client = new RestHighLevelClient(RestClient.builder(new HttpHost("localhost", 9200, "http")));
//        System.out.println(client);
//        return client;
//
//    }
//
//}
